package com.yunzhou.mapper;

import com.yunzhou.entity.ForumArticleAttachment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ForumArticleAttachmentMapper {
    // 根据文章ID获取文章附件
    List<ForumArticleAttachment> getForumArticleAttachmentListByArticleId(Long articleId);

    // 新增文章附件
    void insert(ForumArticleAttachment forumArticleAttachment);

    // 更新文章附件
    int update(ForumArticleAttachment forumArticleAttachment);
}

